package main

import (
    "fmt"
    "reflect"
)

type resume struct{
    Name string `info:"name" doc:"你的名字"`
    Age int `info:"sex" doc:"JackyCHen"`
}

func findTag(str interface{}){
    tag := reflect.TypeOf(str)
    for i := 0; i < tag.NumField(); i++{
        tagInfo := tag.Field(i).Tag.Get("info")
        tagDoc := tag.Field(i).Tag.Get("doc")
        fmt.Println("info: ",tagInfo,", doc:",tagDoc)
    }
}

func main(){
    var r resume

    findTag(r)
}